#ifndef _I_API_RESOURCE_H_
#define _I_API_RESOURCE_H_

#include "../interface/I_api_DeviceChild.h"

class I_api_Resource : public I_api_DeviceChild
{
protected:
	int	m_Type;

public: 	
	I_api_Resource(int nType = E_api_Resource_Dimension_Unknown, 
								 const I_api_Device * pDevice = 0) : 
		I_api_DeviceChild(pDevice)
	{ 
		m_Type = nType; 
	}
	
	virtual ~I_api_Resource() { m_Type = E_api_Resource_Dimension_Unknown; }

	void	GetType(int *rType) { if (rType != 0) *rType = m_Type; }

	virtual	void	*	Get()=0;
};

#endif